import 'package:flutter/material.dart';

import 'entry.dart';
import 'pages/imagesPage.dart';
import 'pages/indexPage.dart';
import 'pages/loginPage.dart';
import 'pages/megaSitePage.dart';
import 'pages/textEditPage.dart';
import 'pages/wordsPage.dart';
import 'parts/changeLogEdit.dart';
import 'parts/changeLogView.dart';
import 'parts/searchBoxPage.dart';

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: Entry.AppName,
      initialRoute: Routes.IndexPage,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      routes: {
        Routes.IndexPage: (context) => IndexPage(),
        Routes.LoginPage: (context) => LoginPage(),
        Routes.WordsPage: (context) => WordsPage(),
        Routes.ImagesPage: (context) => ImagesPage(),
        Routes.TextEditPage: (context) => TextEditPage(),
        Routes.MegaSitePage: (context) => MegaSitePage(),
        Routes.SearchBox: (context) => SearchBoxPage(),
        Routes.ChangeLogView: (context) => ChangeLogView(),
        Routes.ChangeLogEdit: (context) => ChangeLogEdit(),
      },
    );
  }
}
